class CreateMerchandises < ActiveRecord::Migration
  def self.up
    create_table :merchandises do |t|
      t.string :name
      t.decimal :item_id, :precision => 20, :scale => 0
      t.decimal :price
      t.decimal :commission
      t.integer :total_num
      t.string :img_url
      t.integer :commission_num
      t.integer :shop_id
      t.string :prom_url

      t.timestamps
    end
  end

  def self.down
    drop_table :merchandises
  end
end
